﻿@using fqlmoney.Model
@using fqlmoney.Common;
@using Web.Models;
@{ 
    userinfo info = ViewBag.userinfo;
}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <link rel="shortcut icon" href="/favicon.ico" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@ViewBag.Title - 爱记账</title>

    <link href="/Content/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/Content/css/font-awesome.css" rel="stylesheet" />
    <style>
        .headimg {
            width:40px;
            padding:5px 0px;
        }
        .navbar-nav .active a,.navbar-nav .active a:hover{
            background-color:#f9f9f9;
        }
    </style>
    @RenderSection("fqlmoneyCss", false)
    
</head>
<body role="document">
    <header class="navbar navbar-static-top bs-docs-nav" style="background-color:#EEEEF0;border-bottom: 1px solid #ccc;">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="true" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="fa fa-bars fa-2x"></span>
                </button>
                <a class="navbar-brand" href="#"  style="font-weight: bold;">爱记账</a>
            </div>
            <nav class="collapse navbar-collapse bs-navbar-collapse" id="navbar">
                <ul class="nav navbar-nav">
                    <li class="@(ViewBag.Menu=="index"?"active":"")"><a href="/">首页</a></li>
                    <li class="@(ViewBag.Menu=="order"?"active":"")"><a href="/Order/List">记一笔</a></li>
                    <li class="@(ViewBag.Menu=="type"?"active":"")"><a href="/Type/List">分类</a></li>

                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><img class="headimg img-circle" src="@info.u_headimg" /></li>
                </ul>
            </nav>
        </div>
    </header>

    <div class="container theme-showcase" role="main">
        @RenderBody()

    </div>
    <footer class="bs-docs-footer" role="contentinfo">
        <div class="container">
            <p>&copy; @DateTime.Now.Year - feng70</p>
        </div>
    </footer>
    
    <script src="/Content/script/jquery2.1.1.min.js"></script>
    <script src="/Content/script/bootstrap.min.js"></script>
   @RenderSection("fqlmoneyScript", false)
    
</body>
</html>